#pragma once
#include "Sprite.h"
#include "InputKeyBoard.h"
#include "stdafx.h"
#include "Animation.h"
#include "GameTime.h"
#include "Toolbullet.h"
#include "ObjectTittleMap.h"
#include <fstream>


class Blue
{
	//LPDIRECT3DDEVICE9 m_d3ddv;
	Sprite *m_Sprite;
	vector<ObjectTittle> m_positionShootAtSprite;

	D3DXVECTOR3 m_Position;
	int m_Veclocity_vx;
	float m_Veclocity_vy;

	int m_Vpx;

	SpriteEffect m_Effect;

	// jump
	TypeMove m_TypeMove;
	float m_TimeJump;
	MoveImage m_Move;

	bool m_isAttack;

	ShootDerection m_shootDirection;
	// bullet
	Toolbullet *m_ToolBullet;

	// time to run
	float m_TimeAnimation;
	float m_TimeShoot;
	GameTime *m_gameTime;

public:
	Blue(LPDIRECT3DDEVICE9 d3ddv);
	void loadPositionShootAtSprite(char *Path);

	void Render(LPD3DXSPRITE SpriteHandler);

	void InputKey(CKeyBoard);
	void UpdateShoot();

	void Update();
	D3DXVECTOR3 GetPosition();
	int getVpx()
	{
		return m_Vpx;
	}
	~Blue();
};

